<template>
  <div class="customerUpdateTwo">
    <el-button type="primary" @click="submitForm">新增合同</el-button>
    <el-table v-loading="loading" :data="customerList">
      <el-table-column label="合同编号" align="center" prop="id"/>
      <el-table-column label="物管合同号" align="center" prop="companyName"/>
      <el-table-column label="合同名称" align="center" prop="companyType">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.company_type" :value="scope.row.companyType"/>
        </template>
      </el-table-column>
      <el-table-column label="签订时间" align="center" prop="companystatus">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.company_status" :value="scope.row.companystatus"/>
        </template>
      </el-table-column>

      <el-table-column label="记租时间" align="center" prop="industryname"/>
      <el-table-column label="到期时间" align="center" prop="name"/>
      <el-table-column label="状态" align="center" prop="mobile"/>
      <el-table-column label="签订人" align="center" prop="mobile"/>
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['houseinfo:houseinfo:edit']"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['houseinfo:houseinfo:remove']"
          >删除</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>
<style lang="scss">
  .customerUpdateTwo{
    .el-button{
      margin:10px 0 !important;
    }
  }
</style>
<script>
  export default {
    data() {
      return {
        loading:false,
        customerList:[]
      };
    },
    created() {
    },
    methods: {
      submitForm(){
        this.$router.push({
          path:"/contarct/ContractNew",
          query:{
            type:"customer"
          }
        })
      },
      handleUpdate(row){

      },
      handleDelete(row){

      }
    }
  };
</script>
